home *** CD-ROM | disk | FTP | other *** search
/ Mesolore / Mesolore - Disc 1.iso / pc / data / Buttons.cst / 00004_Script_4 < prev    next >
Text File  |  2001-04-13  |  1KB  |  43 lines

  1. Global gDispatcher,gPrefBrowser
  2. on mousedown
  3.   btnDown 12
  4. end
  5. on mouseUp
  6.   btnUp 12
  7.   if the controldown then
  8.     set fio = new(XTRA "fileio")
  9.     if the platform contains "macintosh" then
  10.       fio.setfiltermask("APPL")
  11.     else
  12.       fio.setfiltermask("*.exe")
  13.     end if
  14.     filename = fio.displayOpen()
  15.     if not voidp(filename) and not (filename = EMPTY) then
  16.       browsername(filename)
  17.       gotoNetpage("http://www.mesolore.com/library/advanced/alvarado/index.htm")
  18.     else
  19.       nothing
  20.     end if
  21.     
  22.     fio.closefile()
  23.     fio = 0
  24.   else
  25.     if not voidp(gPrefBrowser) then
  26.       gotoNetpage("http://www.mesolore.com/library/advanced/alvarado/index.htm")
  27.     else
  28.       if the platform contains "macintosh" then
  29.         the itemdelimiter = ":"
  30.       else
  31.         the itemdelimiter = "\"
  32.       end if
  33.       temp = browsername()
  34.       tempa = item (the number of items in temp) of temp
  35.       alert("Your preferred internet browser is currently set to: "  & Return &  RETURN & tempa¼
  36.  & return & return &  "To use a different browser, hold down the CONTROL KEY, click the ALVARADO VOCABULRY button and open your preferred browser.") 
  37.       
  38.       gPrefBrowser= browsername()
  39.       the itemdelimiter = ","
  40.     end if
  41.   end if
  42. end
  43.